import { COMMON_ACTION } from '../actionTypes';

const initialState = {
  loading: '',
};

const open = (state = initialState, action) => {
  switch (action.type) {
    case COMMON_ACTION:
      return {
        ...state,
        ...action.payload,
      };
    default:
      return state;
  }
};

export default open;
